package com.ruoyi.point.service.impl;

import com.ruoyi.point.mapper.EquipmentInformationMapper;
import com.ruoyi.point.pojo.EquipmentInformation;
import com.ruoyi.point.service.IEquipmentInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 设备操作管理Service业务层处理
 *
 * @author ruoyi
 * @date 2024-04-22
 */
@Service
public class EquipmentInformationServiceImpl implements IEquipmentInformationService
{
    @Autowired
    private EquipmentInformationMapper equipmentInformationMapper;

    /**
     * 查询设备操作管理
     *
     * @param equipmentId 设备操作管理主键
     * @return 设备操作管理
     */
    @Override
    public EquipmentInformation selectEquipmentInformationByEquipmentId(Long equipmentId)
    {
        return equipmentInformationMapper.selectEquipmentInformationByEquipmentId(equipmentId);
    }

    /**
     * 查询设备操作管理列表
     *
     * @param equipmentInformation 设备操作管理
     * @return 设备操作管理
     */
    @Override
    public List<EquipmentInformation> selectEquipmentInformationList(EquipmentInformation equipmentInformation)
    {
        return equipmentInformationMapper.selectEquipmentInformationList(equipmentInformation);
    }

    /**
     * 新增设备操作管理
     *
     * @param equipmentInformation 设备操作管理
     * @return 结果
     */
    @Override
    public int insertEquipmentInformation(EquipmentInformation equipmentInformation)
    {
        return equipmentInformationMapper.insertEquipmentInformation(equipmentInformation);
    }

    /**
     * 修改设备操作管理
     *
     * @param equipmentInformation 设备操作管理
     * @return 结果
     */
    @Override
    public int updateEquipmentInformation(EquipmentInformation equipmentInformation)
    {
        return equipmentInformationMapper.updateEquipmentInformation(equipmentInformation);
    }

    /**
     * 批量删除设备操作管理
     *
     * @param equipmentIds 需要删除的设备操作管理主键
     * @return 结果
     */
    @Override
    public int deleteEquipmentInformationByEquipmentIds(Long[] equipmentIds)
    {
        return equipmentInformationMapper.deleteEquipmentInformationByEquipmentIds(equipmentIds);
    }

    /**
     * 删除设备操作管理信息
     *
     * @param equipmentId 设备操作管理主键
     * @return 结果
     */
    @Override
    public int deleteEquipmentInformationByEquipmentId(Long equipmentId)
    {
        return equipmentInformationMapper.deleteEquipmentInformationByEquipmentId(equipmentId);
    }
}
